alternatives: x86 rename and change parameters on ARM
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 17 Aug 2016 02:20:54 +0000 (22:20 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 9 Sep 2016 15:48:21 +0000 (11:48 -0400)
commit0b3102be2261de5376723fb6d40465cd7f9cb162
tree22090f98095bb55ae35e1bf6f681fa7d50008b79
parent3e883d8b7ac22ce92120a78a82426bb62f6b9c15
alternatives: x86 rename and change parameters on ARM

On x86 we squash 'apply_alternatives' in to
'alternative_instructions' (who was its sole user)
and 'apply_alternatives_nocheck' to 'apply_alternatives'.

On ARM we change the parameters for 'apply_alternatives'
to be of 'const struct alt_instr *' instead of void pointer and
size length.

We also add 'const' and make the arguments be on the
proper offset.

Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> [x86 bits]
Reviewed-by: Julien Grall <julien.grall@arm.com> [ARM bits]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/arch/arm/alternative.c
xen/arch/x86/alternative.c
xen/common/livepatch.c
xen/include/asm-arm/alternative.h
xen/include/asm-x86/alternative.h